package com.aabte.springdocopenapi.controller;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.http.HttpStatus;

@EqualsAndHashCode(callSuper = true)
@Data
public class PersonNotFoundApiException extends ApiException {

    public PersonNotFoundApiException() {
        super(HttpStatus.NOT_FOUND.value(), "404", "person not exist.");
    }

    public PersonNotFoundApiException(Throwable cause) {
        super(cause, HttpStatus.NOT_FOUND.value(), "404", "person not exist.");
    }

    public PersonNotFoundApiException(Integer status, String code, String msg) {
        super(status, code, msg);
    }

    public PersonNotFoundApiException(String message, Integer status, String code, String msg) {
        super(message, status, code, msg);
    }

    public PersonNotFoundApiException(String message, Throwable cause, Integer status, String code, String msg) {
        super(message, cause, status, code, msg);
    }

    public PersonNotFoundApiException(Throwable cause, Integer status, String code, String msg) {
        super(cause, status, code, msg);
    }

    public PersonNotFoundApiException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Integer status, String code, String msg) {
        super(message, cause, enableSuppression, writableStackTrace, status, code, msg);
    }
}
